package com.ybliang.plat.cms.webapp.web;

import com.ybliang.plat.serviceapp.common.exception.Error;

public enum CmsError implements Error {

    //======= 业务错误 - 40 ======= [40000, 40099]
    INVALID_BATCHNO      (40001, "invalid batchNo"),
    APP_OFFLINE          (40002, "app offline");

    public int code;
    public String msg;
    private CmsError(int code, String msg) { this.code = code; this.msg = msg; }

    @Override
    public int getCode() { return code; }

    @Override
    public String getMessage() {  return msg; }

}
